Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Luyolo Mgodi 71 posts 120 karma points
    Aug 29, 2011 @ 14:20
    Luyolo Mgodi
    0

    Error Passing SubmitBasket[XSLT]

    Good Day,

     

    Im getting this error on my subit Basket Page. There seems to be a problem with the "CommerceLibrary:SetBillingAddress(''Billing)" Method.

    Please check below is the erro Im getting:

     

    Error occured

    System.Xml.Xsl.XslTransformException: Extension object 'urn:CommerceLibrary' does not contain a matching 'SetBillingAddress' method that has 1 parameter(s). 
    at System.Xml.Xsl.Runtime.XmlExtensionFunction.Bind() 
    at System.Xml.Xsl.Runtime.XmlExtensionFunctionTable.Bind(String name, String namespaceUri, Int32 numArgs, Type objectType, BindingFlags flags) 
    at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args) 
    at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) 
    at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) 
    at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) 
    at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) 
    at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer) 
    at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver) 
    at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results) 
    at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)

  • Søren Spelling Lund 1797 posts 2786 karma points
    Aug 29, 2011 @ 19:47
    Søren Spelling Lund
    0

    Hi Luyolo,

    There's no SetBillingAddress extension. You want CommerceLibrary:EditBillingInformation.

  • Luyolo Mgodi 71 posts 120 karma points
    Aug 30, 2011 @ 09:56
    Luyolo Mgodi
    0

    Hi Soren,

    That is what came with the package! If you can check inside the SubmitBasket[XSLT].xsl file in uCommerce version 2.0.2.0 ? You will find the Line of code(extension).

    This is how the file is below: 

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet 
      version="1.0" 
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
      xmlns:msxml="urn:schemas-microsoft-com:xslt"
      xmlns:umbraco.library="urn:umbraco.library"
      xmlns:CommerceLibrary="urn:CommerceLibrary"
      exclude-result-prefixes="msxml umbraco.library CommerceLibrary">


    <xsl:output method="xml" omit-xml-declaration="yes"/>

    <xsl:param name="currentPage"/>

    <xsl:template match="/">

      <xsl:variable name="isPostback" select="umbraco.library:RequestForm('submitBasket') "></xsl:variable>

      <xsl:if test="string-length($isPostback) > 0">
        <xsl:value-of select="CommerceLibrary:ExecuteBasketPipeline()"></xsl:value-of>
        NB: ----> <xsl:variable name="addressResult" select="CommerceLibrary:SetBillingAddress('Billing')"></xsl:variable>
        <xsl:variable name="result" select="CommerceLibrary:Checkout()"></xsl:variable>
      </xsl:if>

    </xsl:template>

    </xsl:stylesheet>

  • Søren Spelling Lund 1797 posts 2786 karma points
    Aug 31, 2011 @ 10:43
    Søren Spelling Lund
    0

    You're correct that it's in there, but it's commented out be default. The commented out code made it's way into the package by accident. I'll go ahead and remove it for the next release.

    In the meantime you can safely remove it and your site will work just fine.

    Sorry for the inconvenience.

  • Luyolo Mgodi 71 posts 120 karma points
    Aug 31, 2011 @ 11:35
    Luyolo Mgodi
    0

    Hi Soren,

    I have safely removed it and it works just fine!! 

    Thank you for your help

Please Sign in or register to post replies

Write your reply to:

Draft